package com.neutech.runtime;

import com.neutech.base.Constant;
import com.neutech.base.Sprite;
import com.neutech.util.ImageUtil;

import java.awt.*;

import static sun.plugin.security.JDK11ClassFileTransformer.init;

public class Background extends Sprite {
    private Image image;

    public Background(){
        init();
    }

    private void init(){
        setX(0);
        setY(Constant.WINDOW_TOOLBAR_HEIGHT);
        image = ImageUtil.get("bg");
    }
    @Override
    public void draw(Graphics g) {
        g.drawImage(image,getX(),getY(),null);
    }
}
